﻿<UserControl x:Class="CodeJumper.ElementView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:uc1="clr-namespace:CodeJumper"
             mc:Ignorable="d" 
             d:DesignHeight="370" d:DesignWidth="383" FontFamily="Segoe UI" FontWeight="Normal" FontSize="10" >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Styles/Simple Styles.xaml"/>
                <ResourceDictionary Source="Styles/CustomStyles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>
    <Grid>
        <Grid.ContextMenu >
            <ContextMenu Name="UserControlContextMenu">
                <MenuItem Header="Hide Variables in this view" IsCheckable="True" Click="MenuItem_Click_1" Name="HideVariables" IsChecked="{Binding AppConfig.HideVariables}"  />
                <MenuItem Header="Hide Properties in this view" IsCheckable="True" Click="MenuItem_Click_1" Name="HideProperties" IsChecked="{Binding AppConfig.HideProperties}" />
                <Separator/>
                <MenuItem Header="Collapse All" Click="CollapseAll" />
                <MenuItem Header="Expand All"  Click="ExpandAll"  />
                <Separator/>
                <MenuItem Header="Options" Name="OptionsMenuItem" Click="MenuItem_Click" />
                    
            </ContextMenu>
        </Grid.ContextMenu>
        <Grid>
            <Grid>
                <GridSplitter HorizontalAlignment="Left" VerticalAlignment="Stretch" Width="5" Background="LightGray" Name="splitter1" PreviewMouseWheel="splitter1_PreviewMouseWheel" />
            </Grid>
            <Grid Margin="5,0,0,0" Name="SplitterMarginGrid">
                <ScrollViewer  Background="Transparent" VerticalScrollBarVisibility="Auto" CanContentScroll="True" Name="scrollViewer1" HorizontalAlignment="Stretch" Style="{DynamicResource SimpleScrollViewer}" HorizontalContentAlignment="Left" ScrollChanged="scrollViewer1_ScrollChanged">
                    <Grid HorizontalAlignment="Stretch" Name="stackPanel2" VerticalAlignment="Stretch"></Grid>
                </ScrollViewer>
            </Grid>
        </Grid>
    </Grid>
</UserControl>
